export default {
  namespace: 'productsTest',
  state: {
    productLists:[
      { name: 'dva1', id: 1 },
      { name: 'ant2', id: 2 }
    ]
  },
  reducers: {
    delete(state, { payload: id }) {
      return state.productLists.filter(item => item.id !== id)
    }
  }
}
